package pri.syl.xiaowu.websocket.init;

import pri.syl.xiaowu.websocket.autoconfigure.WebsocketProperties;
import pri.syl.xiaowu.websocket.init.core.factory.execution.WebsocketInitExecution;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @Author YunLong
 * @Date 2021/7/18 18:14
 * @Description 初始化websocketInit
 **/
public class WebsocketInit {
    @Resource
    private WebsocketProperties websocketProperties;

    @PostConstruct
    public void init() {

        WebsocketInitExecution.init(websocketProperties.getUrl(),
                websocketProperties.getMaxFramePayloadLength(),
                websocketProperties.getReadTimeoutMilli());

    }
}
